<?php
/**
 *
 *
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * For full copyright and license information, please see the LICENSE.txt
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link          http://cakephp.org CakePHP(tm) Project
 * @package       app.View.Emails.text
 * @since         CakePHP(tm) v 0.10.0.1076
 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
 */
?>
<?php 
	
	
	$result = array ();
	
	/*
		[{
		    "text": "To Do", 
		    "cls": "folder",
		    "expanded": true,
		    "children": [{
		        "text": "Go jogging",
		        "leaf": true,
		        "checked": true
		    },{
		        "text": "Take a nap",
		        "leaf": true,
		        "checked": false
		    },{	
	*/
	
	foreach ($kat as $kokler) {
		$node = new Node();
		$node->text = $kat.get('ad');
		array_push($result, $node);
	}
	

	//$egitimkategori = Set::extract('/TnmEgitimKategori/.', $egitimkategori);
	//$result->results = $egitimkategori;
	//$result->success = TRUE;
	
	echo json_encode( $kokler );

?>